<ul>
<?php foreach($sf_request->getAttribute('categories') as $categorie): ?>
  <li>
      <?php echo link_to( $categorie->getCategoriesName() , 'categories/subcategories?parent='.$categorie->getCategoriesId())?>
  </li>
<?php endforeach; ?>
</ul>